<html>
<body>
<?php
	if ($_POST['Shooter']) {		
		echo '<h2>Suvey Answers</h2>';
		echo '<table>';	
		if ($_POST['Controller']) {
			echo '<tr><td>What is the best controller for shooters?</td><td>'.$_POST['Controller'].'</td></tr>';
		} if ($_POST['Gate']) {
			echo '<tr><td>What is the best Gate?</td><td>'.$_POST['Gate'].'</td></tr>';
		} if ($_POST['Scrolling']) {
			echo '<tr><td>Do you prefer horizontal or vertical scrolling?</td><td>'.$_POST['Scrolling'].'</td></tr>';
		} if ($_POST['Shooter']) {
			if ($_POST['Shooter'] == 'other') {
				echo '<tr><td>What is the best horizontal shooter?</td><td>'.$_POST['otherText'].'</td></tr>';	
			} else {
				echo '<tr><td>What is the best horizontal shooter?</td><td>'.$_POST['Shooter'].'</td></tr>';
			}
		} if ($_POST['Developer']) {
			echo '<tr><td>Which is the better developer?</td><td>'.$_POST['Developer'].'</td></tr>';
		} if ($_POST['Cave']) {
			if ($_POST['Cave'] == 'other') {
				echo '<tr><td>What is Cave\'s best release?</td><td>'.$_POST['otherText'].'</td></tr>';
			} else {
				echo '<tr><td>What is Cave\'s best release?</td><td>'.$_POST['Cave'].'</td></tr>';
			}
		} if ($_POST['Treasure']) {
			if ($_POST['Treasure'] == 'other') {
				echo '<tr><td>What is Treasure\'s best release?</td><td>'.$_POST['otherText'].'</td></tr>';
			} else {
				echo '<tr><td>What is Treasure\'s best release?</td><td>'.$_POST['Treasure'].'</td></tr>';
			}
		}
		echo '</table>';
	} else if ($_POST['Cave']) {		
		echo '<h2>Suvey Answers</h2>';
		echo '<table>';	
		if ($_POST['Controller']) {
			echo '<tr><td>What is the best controller for shooters?</td><td>'.$_POST['Controller'].'</td></tr>';
		} if ($_POST['Gate']) {
			echo '<tr><td>What is the best Gate?</td><td>'.$_POST['Gate'].'</td></tr>';
		} if ($_POST['Scrolling']) {
			echo '<tr><td>Do you prefer horizontal or vertical scrolling?</td><td>'.$_POST['Scrolling'].'</td></tr>';
		} if ($_POST['Shooter']) {
			if ($_POST['Shooter'] == 'other') {
				echo '<tr><td>What is the best horizontal shooter?</td><td>'.$_POST['otherText'].'</td></tr>';	
			} else {
				echo '<tr><td>What is the best horizontal shooter?</td><td>'.$_POST['Shooter'].'</td></tr>';
			}
		} if ($_POST['Developer']) {
			echo '<tr><td>Which is the better developer?</td><td>'.$_POST['Developer'].'</td></tr>';
		} if ($_POST['Cave']) {
			if ($_POST['Cave'] == 'other') {
				echo '<tr><td>What is Cave\'s best release?</td><td>'.$_POST['otherText'].'</td></tr>';
			} else {
				echo '<tr><td>What is Cave\'s best release?</td><td>'.$_POST['Cave'].'</td></tr>';
			}
		} if ($_POST['Treasure']) {
			if ($_POST['Treasure'] == 'other') {
				echo '<tr><td>What is Treasure\'s best release?</td><td>'.$_POST['otherText'].'</td></tr>';
			} else {
				echo '<tr><td>What is Treasure\'s best release?</td><td>'.$_POST['Treasure'].'</td></tr>';
			}
		}
		echo '</table>';
	} else if ($_POST['Treasure']) {
		echo '<h2>Suvey Answers</h2>';
		echo '<table>';	
		if ($_POST['Controller']) {
			echo '<tr><td>What is the best controller for shooters?</td><td>'.$_POST['Controller'].'</td></tr>';
		} if ($_POST['Gate']) {
			echo '<tr><td>What is the best Gate?</td><td>'.$_POST['Gate'].'</td></tr>';
		} if ($_POST['Scrolling']) {
			echo '<tr><td>Do you prefer horizontal or vertical scrolling?</td><td>'.$_POST['Scrolling'].'</td></tr>';
		} if ($_POST['Shooter']) {
			if ($_POST['Shooter'] == 'other') {
				echo '<tr><td>What is the best horizontal shooter?</td><td>'.$_POST['otherText'].'</td></tr>';	
			} else {
				echo '<tr><td>What is the best horizontal shooter?</td><td>'.$_POST['Shooter'].'</td></tr>';
			}
		} if ($_POST['Developer']) {
			echo '<tr><td>Which is the better developer?</td><td>'.$_POST['Developer'].'</td></tr>';
		} if ($_POST['Cave']) {
			if ($_POST['Cave'] == 'other') {
				echo '<tr><td>What is Cave\'s best release?</td><td>'.$_POST['otherText'].'</td></tr>';
			} else {
				echo '<tr><td>What is Cave\'s best release?</td><td>'.$_POST['Cave'].'</td></tr>';
			}
		} if ($_POST['Treasure']) {
			if ($_POST['Treasure'] == 'other') {
				echo '<tr><td>What is Treasure\'s best release?</td><td>'.$_POST['otherText'].'</td></tr>';
			} else {
				echo '<tr><td>What is Treasure\'s best release?</td><td>'.$_POST['Treasure'].'</td></tr>';
			}
		}
		echo '</table>';
	} else if ($_POST['Developer']) {
		if ($_POST['Developer'] == 'Cave') {
			
			echo '<form action="rawweb.php" method="post">';
			echo '<table>';
			echo '<tr>';
			echo ' <td>What is Cave\'s best release?</td>';
			echo ' <td>';
			echo '	<input type="radio" name="Cave" value="Dodonpachi" />Dodonpachi<br>';
			echo '	<input type="radio" name="Cave" value="Ketsui kizuna jigoku tachi" />Ketsui kizuna jigoku tachi<br>';
			echo '	<input type="radio" name="Cave" value="Mushihimesama Futari 1.5" />Mushihimesama Futari 1.5<br>';
			echo '	<input type="radio" name="Cave" value="other" />';
			echo '		<input type="text" name="otherText" /><br>';
			echo '</td>';	
			echo '</tr>';
			echo '</table>';			
			if ($_POST['Controller']) {
				echo '<input type="hidden" name="Controller" value="'.$_POST['Controller'].'">';
			} if ($_POST['Gate']) {
				echo '<input type="hidden" name="Gate" value="'.$_POST['Gate'].'">';
			} if ($_POST['Scrolling']) {
				echo '<input type="hidden" name="Scrolling" value="'.$_POST['Scrolling'].'">';
			} if ($_POST['Developer']) {
				echo '<input type="hidden" name="Developer" value="'.$_POST['Developer'].'">';
			}
			echo '<input type="submit" />';
			echo '</form>';
		} else if ($_POST['Developer'] == 'Treasure') {
		
			echo '<form action="rawweb.php" method="post">';
			echo '<table>';
			echo '<tr>';
			echo '<td>What is Treasure\'s best release?</td>';
			echo '<td>';
			echo '<input type="radio" name="Treasure" value="Radiant Silvergun" />Radiant Silvergun<br>';
			echo '<input type="radio" name="Treasure" value="Sin and Punishment" />Sin and Punishment<br>';
			echo '<input type="radio" name="Treasure" value="Ikaruga" />Ikaruga<br>';
			echo '<input type="radio" name="Treasure" value="Sin and Punishment: Star Successor" />Sin and Punishment: Star Successor<br>';
			echo '<input type="radio" name="Treasure" value="other" />';
			echo '	<input type="text" name="otherText" /><br>';
			echo '</td>';	
			echo '</tr>';
			echo '</table>';			
			if ($_POST['Controller']) {
				echo '<input type="hidden" name="Controller" value="'.$_POST['Controller'].'">';
			} if ($_POST['Gate']) {
				echo '<input type="hidden" name="Gate" value="'.$_POST['Gate'].'">';
			} if ($_POST['Scrolling']) {
				echo '<input type="hidden" name="Scrolling" value="'.$_POST['Scrolling'].'">';	
			} if ($_POST['Developer']) {
				echo '<input type="hidden" name="Developer" value="'.$_POST['Developer'].'">';
			}
			echo '<input type="submit" />';
			echo '</form>';
		}
	} else if ($_POST['Scrolling']) {
		if ($_POST['Scrolling'] == 'Horizontal') {
					
			echo '<form action="rawweb.php" method="post">';
			echo '<table>';
			echo '<tr>';
			echo '<td>What is the best horizontal shooter?</td>';
			echo '<td>';
			echo '	<input type="radio" name="Shooter" value="Gradius V" />Gradius V<br>';
			echo '	<input type="radio" name="Shooter" value="Sexy Parodius" />Sexy Parodius<br>';
			echo '	<input type="radio" name="Shooter" value="Border Down" />Border Down<br>';
			echo '	<input type="radio" name="Shooter" value="Death Smiles" />Death Smiles<br>';
			echo '	<input type="radio" name="Shooter" value="other" />';
			echo '		<input type="text" name="otherText" /><br>';
			echo '</td>';
			echo '</tr>';
			echo '</table>';			
			if ($_POST['Controller']) {
				echo '<input type="hidden" name="Controller" value="'.$_POST['Controller'].'">';
			} if ($_POST['Gate']) {
				echo '<input type="hidden" name="Gate" value="'.$_POST['Gate'].'">';
			} if ($_POST['Scrolling']) {
				echo '<input type="hidden" name="Scrolling" value="'.$_POST['Scrolling'].'">';
			}
			echo '<input type="submit" />';
			echo '</form>';

		} else if ($_POST['Scrolling'] == 'Vertical') {
		
			echo '<form action="rawweb.php" method="post">';
			echo '<table>';
			echo '<tr>';
			echo '<td>Which is the better developer?</td>';
			echo '<td>';
			echo '	<input type="radio" name="Developer" value="Cave" />Cave<br>';
			echo '	<input type="radio" name="Developer" value="Treasure" />Treasure<br>';
			echo '</td>';
			echo '</tr>';
			echo '</table>';			
			if ($_POST['Controller']) {
				echo '<input type="hidden" name="Controller" value="'.$_POST['Controller'].'">';
			} if ($_POST['Gate']) {
				echo '<input type="hidden" name="Gate" value="'.$_POST['Gate'].'">';
			} if ($_POST['Scrolling']) {
				echo '<input type="hidden" name="Scrolling" value="'.$_POST['Scrolling'].'">';
			}
			echo '<input type="submit" />';
			echo '</form>';
		}
	} else if ($_POST['Gate']) {
		
		echo '<form action="rawweb.php" method="post">';
		echo '<table>';
		echo '<tr>';
		echo '<td>Do you prefer horizontal or vertical scrolling?</td>';
		echo '<td>';
		echo '	<input type="radio" name="Scrolling" value="Horizontal" />Horizontal<br>';
		echo '	<input type="radio" name="Scrolling" value="Vertical" />Vertical<br>';
		echo '</td>';
		echo '</tr>';
		echo '</table>';
		if ($_POST['Controller']) {
			echo '<input type="hidden" name="Controller" value="'.$_POST['Controller'].'">';
		} if ($_POST['Gate']) {
			echo '<input type="hidden" name="Gate" value="'.$_POST['Gate'].'">';
		}
		echo '<input type="submit" />';
		echo '</form>';
	} else if ($_POST['Controller']) {
		if ($_POST['Controller'] == 'Arcade Stick') {
					
			echo '<form action="rawweb.php" method="post">';
			echo '<table>';
			echo '<tr>';
			echo '<td>What is the best gate?</td>';
			echo '<td>';	
			echo '	<input type="radio" name="Gate" value="Circular" />Circular<br>';
			echo '	<input type="radio" name="Gate" value="Octangonal" />Octangonal<br>';
			echo '	<input type="radio" name="Gate" value="Square" />Square<br>';
			echo '</td>';
			echo '</tr>';
			echo '</table>';
			echo '<input type="hidden" name="Controller" value="Arcade Stick">';
			echo '<input type="submit" />';
			echo '</form>';
		} else {
			
			echo '<form action="rawweb.php" method="post">';
			echo '<table>';
			echo '<tr>';
			echo '<td>Do you prefer horizontal or vertical scrolling?</td>';
			echo '<td>';
			echo '	<input type="radio" name="Scrolling" value="Horizontal" />Horizontal<br>';
			echo '	<input type="radio" name="Scrolling" value="Vertical" />Vertical<br>';
			echo '</td>';
			echo '</tr>';
			echo '</table>';
			echo '<input type="hidden" name="Controller" value="'.$_POST['Controller'].'">';
			echo '<input type="submit" />';
			echo '</form>';
		}
	} else {
		echo '<form action="rawweb.php" method="post">';
		echo '<table>';
		echo '<tr>';
		echo '<td>What is the best controller for shooters?</td>';
		echo '<td>';
		echo '	<input type="radio" name="Controller" value="Arcade Stick" />Arcade Stick<br>';
		echo '	<input type="radio" name="Controller" value="Gamepad" />Gamepad<br>';
		echo '	<input type="radio" name="Controller" value="Keyboard" />Keyboard';
		echo '</td>';
		echo '</tr>';
		echo '</table>';
		echo '<input type="submit" />';
		echo '</form>';
		
	}
?>

</body>
</html>
	
